home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
pc
/
LOGIC Apple II 5.25" Library - DOS Part 7
/
DOS225B.dsk
/
INITIALIZE.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
3KB
|
76 lines
0 REM PROGRAM NAME IS 'INITIALIZE'
50 POKE 768,32: POKE 769,106: POKE 770,253: POKE 771,134: POKE 772,0: POKE 773,96: REM CALL GETLN SUBROUTINE
55 A$ = ""
60 D$ = CHR$(13) + CHR$(4)
200 TEXT
210 PRINT D$;"NOMON I,O,C"
220 HOME : VTAB 5: HTAB 5: INVERSE : PRINT " "
230 HTAB 5: PRINT " INITIALIZE CLASS DATA FILES "
240 HTAB 5: PRINT " ": NORMAL
250 PRINT : PRINT
260 HTAB 15: PRINT "WARNING!!!"
270 PRINT : PRINT "YOU ARE ABOUT TO DESTROY ANY OLD DATA"
280 PRINT "THAT IS PRESENTLY ON THIS DISK."
290 PRINT : PRINT "Type 'Y' if you really want to do this: ";: POKE -16368,0: GET A$: IF A$ < >"Y" THEN PRINT : PRINT : PRINT "CANCEL INITIALIZATION."
291 IF A$ = "Y" THEN GOTO 300
295 PRINT "RETURN TO GRADEBOOK.": FOR I = 1 TO 2288: NEXT : PRINT CHR$(4)"RUN GRADEBOOK"
300 PRINT : PRINT
310 HTAB 3: PRINT "WHAT IS THE NEW CLASS NAME? "
320 PRINT
330 GOSUB 2000:CLASS$ = A$
331 HOME : VTAB 14
332 PRINT : PRINT : FLASH : PRINT "PUT DISK TO BE INITIALIZED IN DRIVE 1!": NORMAL
336 PRINT : PRINT "PRESS RETURN TO BEGIN INITIALIZING ";
338 INPUT C$
340 PRINT D$;"OPEN CLASSNAME$"
342 PRINT D$;"WRITE CLASSNAME$"
344 PRINT CLASS$
346 PRINT D$;"CLOSE CLASSNAME$"
348 PRINT D$;"OPEN ASNAME$,L30"
350 FOR I = 1 TO 50
352 PRINT D$;"WRITE ASNAME$,R";I
353 PRINT " "
354 NEXT I
356 PRINT D$;"CLOSE ASNAME$"
358 PRINT D$;"OPEN L%,L4"
360 FOR I = 1 TO 2
362 PRINT D$;"WRITE L%,R";I
364 PRINT 0
366 NEXT I
368 PRINT D$;"CLOSE L%"
370 PRINT D$;"OPEN ASWT%,L6"
372 FOR I = 1 TO 50
374 PRINT D$;"WRITE ASWT%,R";I
376 PRINT 0
378 NEXT I
380 PRINT D$;"CLOSE ASWT%"
382 PRINT D$;"OPEN NAME$,L30"
384 FOR I = 1 TO 60
386 PRINT D$;"WRITE NAME$,R";I
388 PRINT " "
390 NEXT I
400 PRINT D$;"CLOSE NAME$"
410 ONERR GOTO 500
412 FOR I = 1 TO 10
414 PRINT D$;"OPEN G%";I;",L6"
416 FOR N = 1 TO 60
418 PRINT D$;"WRITE G%";I;",R";N
420 PRINT 0
422 NEXT N
424 PRINT D$;"CLOSE"
426 NEXT I
428 FOR I = 11 TO 50: PRINT D$;"DELETE G%;I
430 NEXT
500 REM
510 PRINT D$;"CLOSE"
515 HOME : VTAB 10: PRINT "INITILIZATION PROCESS IS COMPLETE."
517 PRINT : PRINT "DO YOU WANT TO DO ANOTHER DISK? (Y/N) "
518 GET A$: IF A$ = "Y" THEN GOTO 0
519 GOTO 550
520 ONERR PRINT CHR$(4)"RUN GRADEBOOK"
550 PRINT D$;"RUN GRADEBOOK"
2000 POKE 51,128 + ASC(" "): REM PROMPT CHARACTER
2002 CALL 768
2004 POKE 51,128 + ASC("]"): REM BACK TO STANDARD PROMPT
2010 A$ = "": IF PEEK(0) >0 THEN FOR L9 = 1 TO PEEK(0):A$ = A$ + CHR$( PEEK(511 +L9) -128): NEXT
2020 RETURN